// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import qs from 'qs'
import { post, get, patch, put } from './common/http'
import project from './services/projectApi'
import api from './services/api'
import testCase from './services/testCase'
import testCaseStep from './services/testCaseStep'
import env from './services/env'
import envParams from './services/envParams'
import dateFomat from './units/dateFomat'
import jstest from './units/jstest'
import store from './store'
import hex from './services/hex'
import file from './services/file'
import md5 from 'js-md5'
import group from './services/testCaseGroup'
import job from "./services/job";
import dbConnection from "./services/dbConnection";
import jobPlan from "./services/jobPlan";
import user from "./services/user"
import echarts from "echarts";
// import ace from 'ace-builds'
//定义全局变量
// Vue.use(ace)
Vue.prototype.$md5 = md5;
Vue.prototype.$jstest = jstest;
Vue.prototype.$dateFomat = dateFomat;
Vue.prototype.$project = project;
Vue.prototype.$api = api;
Vue.prototype.$env = env;
Vue.prototype.$envParams = envParams;
Vue.prototype.$testCase = testCase;
Vue.prototype.$testCaseStep = testCaseStep;
Vue.prototype.$hex = hex;
Vue.prototype.$file = file;
Vue.prototype.$job = job;
Vue.prototype.$user =user;
Vue.prototype.$jobPlan = jobPlan;
Vue.prototype.$dbConnection = dbConnection;
Vue.prototype.$post = post;
Vue.prototype.$fetch = get;
Vue.prototype.$patch = patch;
Vue.prototype.$put = put;
Vue.prototype.$group =group;
Vue.prototype.$axios = axios;
Vue.prototype.$qs = qs;
Vue.prototype.$echars = echarts;

Vue.use(ElementUI)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})


